<template>
  <div class="">
    <h1>详情页</h1>
    {{ id }}
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
import { useStore } from "vuex";
import { useRouter, useRoute } from "vue-router";
export default {
  setup(props, ctx) {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
    const data = reactive({});
    const { id } = route.params;
    // const id = route.params.id;
    return { ...toRefs(data), id };
  },
};
</script>

<style lang="scss"></style>
